package cn.tedu.tmall.admin.mall.dao.persist.repository;

import cn.tedu.tmall.admin.mall.pojo.po.CategoryPO;
import io.swagger.models.auth.In;

import java.util.List;

public interface ICategoryRepository {

    Integer countCategoryByName(String name);

    Integer save(CategoryPO categoryPO);

    CategoryPO getCategoryById(Long parentId);

    Integer countCategoryById(Long parentId);

    Boolean existCategory(Long parentId);

    Integer updateById(CategoryPO update);

    List<CategoryPO> listAll();

    List<CategoryPO> getTopCategory();

    List<CategoryPO> getChildrenById(Long id);
}
